﻿@functions {
    static readonly IDictionary<string, string> buttons = new Dictionary<string, string>
                                              {
                                                  { string.Empty, "To-Do" },
                                                  { "tasks", "Activity" },
                                                  { "reports", "Reports" },
                                                  { "settings", "Settings" }
                                              };
}
<footer data-role="footer" data-position="fixed">
    <nav data-role="navbar">
        <ul>
            @foreach (var button in buttons) {
                var cssClass = button.Key.Equals(Model) ? " class=ui-btn-active" : string.Empty;
                <li><a href="#!/@button.Key"@cssClass>@button.Value</a></li>
            }
        </ul>
    </nav>
</footer>